[webservers]
{% for host in yandex_compute_instance.web %}
{{ host }}
{% endfor %}

[databases]
{% for host in yandex_compute_instance.database_vm %}
{{ host }}
{% endfor %}

[storage]
{% for host in yandex_compute_instance.storage_vm %}
{{ host }}
{% endfor %}
